core, switchroot: Harden a bit against `g_variant_get_data() == NULL`
authorColin Walters <walters@verbum.org>
Wed, 26 Jul 2023 22:04:11 +0000 (18:04 -0400)
committerColin Walters <walters@verbum.org>
Wed, 26 Jul 2023 22:09:28 +0000 (18:09 -0400)
commit0392b5460276748576da5b4fbc00a361d847b4e3
treea0b1e1643dae8e5b3a6f0c3d1717094a7aa710d5
parentd7d661218e556f8baddf888e297f60f046a524d7
core, switchroot: Harden a bit against `g_variant_get_data() == NULL`

I'm not totally sure this is the cause of
https://bugzilla.redhat.com/show_bug.cgi?id=2217401
but analyzing the code a bit it seems the most likely.
src/libostree/ostree-core.c
src/libotutil/ot-variant-utils.c
src/libotutil/ot-variant-utils.h
src/switchroot/ostree-prepare-root.c